function checkIt()
{
 str_checked = window.opener.document.getElementById("hfHelper").value;
 str_checked = str_checked.split(",");
 ctr = 0;
 if(str_checked.length>0)
 {
  while(ctr<str_checked.length)
  {
   checkBox = "check"+str_checked[ctr];
   document.getElementById(checkBox).checked = true;
   ctr++;
  }
 }
}
function pasamo(str_ids)
{
 arr_ids = eval("Array("+str_ids+")");
 ctr = 0;
 selected_ids = "";
 helpers = "";
 
 //Clear list
 listObj = window.opener.document.getElementById('listBoxHelpers');
 listObj.length = 0;
 
 while(ctr<arr_ids.length)
 {
  //alert(arr_ids[ctr]);
  checkBox = 'check'+arr_ids[ctr];
  //alert(checkBox);
  if(document.getElementById(checkBox).checked == true)
  {
   selected_ids = selected_ids + arr_ids[ctr] + ",";   
   
   //add an item to the list
   name = document.getElementById(checkBox).value;
   var x = document.createElement('option');
   x.text = name;
   x.value = name;
   try
	{
	listObj.add(x,null); // standards compliant
	}
	catch(ex)
	{
	listObj.add(x); // IE only
	}
  }
  ctr = ctr + 1;
 }
 selected_ids = selected_ids.slice(0, -1);
 //alert(selected_ids);
 window.opener.document.getElementById("hfHelper").value = selected_ids;
 window.close();
}